package io.renren.modules.dangan.service.impl;

import io.renren.commons.dynamic.datasource.annotation.DataSource;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.dangan.dao.TCqzswktDao;
import io.renren.modules.dangan.entity.TCqzswktEntity;
import io.renren.modules.dangan.service.TCqzswktService;


@Service("tCqzswktService")
@DataSource("dlmis")
public class TCqzswktServiceImpl extends ServiceImpl<TCqzswktDao, TCqzswktEntity> implements TCqzswktService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TCqzswktEntity> page = this.page(
                new Query<TCqzswktEntity>().getPage(params),
                new QueryWrapper<TCqzswktEntity>()
                        .eq("zl",params.get("position"))
                        .orderByDesc("bsm")
        );
        return new PageUtils(page);
    }
}
